package com.cv.system.controller.system.logger.vo.loginLog;

import com.cv.framework.common.pojo.PageParam;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;

import static com.cv.framework.common.utils.date.DateUtil.FORMAT_YEAR_MONTH_DAY;

/**
 * 后台管理系统 - 登录日志分页列表 Request VO
 *
 * @author Charles_XDXD
 */
@Schema(description = "后台管理系统 - 登录日志分页列表 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
public class SystemLoginLogPageReqVO extends PageParam {

    @Schema(description = "用户账号，模拟匹配", example = "admin")
    private String username;

    @Schema(description = "用户 IP，模拟匹配", example = "127.0.0.1")
    private String userIp;

    @Schema(description = "登录结果", example = "0")
    private Integer result;

    @Schema(description = "日志类型", example = "0")
    private Integer logType;

    @Schema(description = "登录时间", example = "[2022-07-01,2022-07-01]")
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate[] createTime;

}
